<template>
  <div id="app">
    <van-button
      class="get-btn"
      type="primary"
      @click="getPermissionStatus(['gps', 'camera', 'storage', 'photo'])"
      >获取权限状态</van-button>
    <van-button type="primary" @click="startApplyPermission">开始申请授权</van-button>
  </div>
</template>

<script>
import Vue from "vue";
import { Button } from "vant";

Vue.use(Button);

export default {
  name: "App",
  methods: {
    getPermissionStatus(types) {
      console.log(types);
    },
    startApplyPermission() {},
  },
};
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.get-btn {
  margin-right: 10px;
}
</style>
